package per.xue.carid_booking.entity;


import javax.persistence.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-05-22
 */
@Data
@ApiModel(value="ticket")
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "ticket")
public class Ticket implements Serializable {



    /**
     * 车票id
     */
    
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Column(name = "ticket_id")
                @ApiModelProperty(value = "车票id",name = "ticketId",dataType = "Integer")
        private Integer ticketId;

    /**
     * 车次id
     */
    @Column(name = "car_id")
        @ApiModelProperty(value = "车次id",name = "carId",dataType = "String")
        private String carId;

    /**
     * 用户id
     */
    @Column(name = "userId")
    @ApiModelProperty(value = "用户id",name = "userId",dataType = "String")
    private String userId;

    /**
     * 乘客名
     */
    @Column(name = "name")
        @ApiModelProperty(value = "乘客名",name = "name",dataType = "String")
        private String name;

    /**
     * 联系方式
     */
    @Column(name = "callphone")
        @ApiModelProperty(value = "联系方式",name = "callphone",dataType = "String")
        private String callphone;

    /**
     * 身份证号
     */
    @Column(name = "idcard")
        @ApiModelProperty(value = "身份证号",name = "idcard",dataType = "String")
        private String idcard;

    /**
     * 0是女，1是男
     */
    @Column(name = "gender")
        @ApiModelProperty(value = "0是女，1是男",name = "gender",dataType = "String")
        private String gender;

    /**
     * 状态，待写
     */
    @Column(name = "stats")
        @ApiModelProperty(value = "状态，0未支付，1是已支付，2是退票，3是已过期",name = "stats",dataType = "String")
        private String stats;


}


